<?php

/**
 * @author   Leen
 * @date     2016/08/24
 */
namespace App\Interfaces;

use Illuminate\Database\Eloquent\Collection;

interface PasswordCouponService
{


    /**
     * 创建优惠口令
     * @param  [type] $pwd_num   [要生成的口令数量]
     * @param  [type] $coupon_id [优惠券id]
     * @return [type]            [description]
     */
    public function createPwds($pwd_num, $coupon_id);


    /**
     * 获取指定优惠券的口令
     * @param int $coupon_id      		优惠券id
     * @param int $password_status    	口令状态
     * @return mixed  包含: 1.用户所有的收货地址
     */
    public function getPwds($coupon_id, $password_status = 0);


    /**
     * 更新口令状态
     * @param  [type] $pwd_num   [description]
     * @param  [type] $coupon_id [description]
     * @return [type]            [description]
     */
    public function updatePwds($password, $password_status, $send_time = null, $user_id = 0, $use_time = null);


    /**
     * 获取未发送的口令的优惠券列表
     * @return [type]            [description]
     */
    public function getCouponNoSend();

    /**
     * 根据口令id获取口令信息
     * @return [type]            [description]
     */
    public function getCouponByPwd($password);

}//end class PasswordCouponService